<?
 set_include_path(dirname(__FILE__).'/');
require_once"config/config.php";
require_once"config/route.php";
require_once"class/error.class.php";
require_once"class/api.class.php";
require_once"modules/add_model_module.class.php";
require_once"modules/add_module.class.php";
require_once"class/model.class.php";
require_once"class/db.class.php";
require_once"class/bufer.class.php";
require_once"class/add.contrl.class.php";
require_once"class/contrl_admin.class.php";
require_once"class/contrl_site.class.php";

$db= new db(HOST,USER,PASS,NAME_BASA);

$view= new buffer();
$model= new model($db);
$contrl= new contrl_site($db,$view,$model,$config,$routes);

$contrl->core();

?>